import './LocationPage.scss'
import { Button } from 'antd'

const LocationPage = ({ data }) => {
    const NavToProject = (host) => window.location.href = `http://${host}:${window.location.port}`
    return (
        <div className='LocationPage'>
            {data.map(({ host, title }) => (<Button key={host} onClick={() => NavToProject(host)}>{title}</Button>))}
        </div>
    )
}

export default LocationPage;